package io.bdmc.modules.bss.mapper;

import io.bdmc.modules.bss.entity.DeviceDevice;
import org.apache.ibatis.annotations.Param;

import io.bdmc.common.utils.MyPage;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 设备基础信息 Mapper 接口
 * </p>
 *
 * @author ping
 * @since 2020-06-29
 */
public interface DeviceDeviceMapper extends BaseMapper<DeviceDevice> {

    MyPage<DeviceDevice> mySelectPage(@Param("myPage") MyPage<DeviceDevice> myPage);

    List<HashMap<String, Object>> ztreeDeviceList(@Param("deptId") Long deptId);

    HashMap<String, Object> deviceFibreAlarmCount(@Param("deptId") Long deptId);

    List<DeviceDevice> listAllDevices();

    List<HashMap<String, Object>> deviceFibreMatchList();

    DeviceDevice getDeviceDetail(@Param("deviceId") Integer deviceId);

    DeviceDevice selectParentDeviceBySn(@Param("deviceSn") String deviceSn);

    List<Map<String,Object>> linkTree(@Param("deptId") Long deptId);

    List<Map<String, Object>> deviceTypeSum(Long deptId);
}
